package com.company.utils;

public class Reverse {
    public static void main(String[] args) {
        int [] list = {1,2,3,4,5};
        reverse(list);
        OutputList.listToString(list);
    }
    public static void reverse(int[] list){
        int[] list2 = list.clone();
        for(int i = 0 ;i<list.length;i++){
            list[i] = list2[list.length-1-i];
        }
    }
}
